MODULES_DIR := /lib/modules/$(shell uname -r)
KERNEL_DIR := ${MODULES_DIR}/build

TARGET = modules

all: ${TARGET}
	make -C ${KERNEL_DIR} M=$$PWD;
3.12.0:
	make -C /lib/modules/3.12.0/build M=$$PWD;
3.18.25:
	make -C /lib/modules/3.18.25/build M=$$PWD;
modules:
	make -C ${KERNEL_DIR} M=$$PWD $@;
modules_install:
	make -C ${KERNEL_DIR} M=$$PWD $@;
clean:
	make -C ${KERNEL_DIR} M=$$PWD $@;
